GO := go

clean:
	@test -d bin && rm -rf -v bin || exit 0

protobuf:
	"$(CURDIR)/scripts/compile_proto.sh"

lint:
	golangci-lint run --verbose --disable-all --enable=staticcheck ./...

build:
	@test -d bin || mkdir bin
	$(GO) build -o bin/agentserver cmd/agent/main.go

.PHONY: clean protobuf lint build
